<?php
namespace App\Model;

/**
 * @Author:: HuangYin
 * @DateTime: 2017-01-16 11:29
 *
 * @Description:
 */
class Order extends BaseModel
{
    protected $table = 'order';

    protected $visible = ['id', 'store_id', 'store_name', 'shopkeeper', 'phone', 'tel', 'number', 'status', 'created_at'];

    public function detail()
    {
        return $this->hasMany('App\Model\OrderDetail', 'order_id', 'id');
    }
}